package com.ruoyi.boss.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.TSendOrderMapper;
import com.ruoyi.boss.domain.TSendOrder;
import com.ruoyi.boss.service.ITSendOrderService;

/**
 * 强派设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TSendOrderServiceImpl implements ITSendOrderService 
{
    @Autowired
    private TSendOrderMapper tSendOrderMapper;

    /**
     * 查询强派设置
     * 
     * @param sendOrderId 强派设置主键
     * @return 强派设置
     */
    @Override
    public TSendOrder selectTSendOrderBySendOrderId(Long sendOrderId)
    {
        return tSendOrderMapper.selectTSendOrderBySendOrderId(sendOrderId);
    }

    /**
     * 查询强派设置列表
     * 
     * @param tSendOrder 强派设置
     * @return 强派设置
     */
    @Override
    public List<TSendOrder> selectTSendOrderList(TSendOrder tSendOrder)
    {
        return tSendOrderMapper.selectTSendOrderList(tSendOrder);
    }

    /**
     * 新增强派设置
     * 
     * @param tSendOrder 强派设置
     * @return 结果
     */
    @Override
    public int insertTSendOrder(TSendOrder tSendOrder)
    {
        tSendOrder.setCreateTime(DateUtils.getNowDate());
        return tSendOrderMapper.insertTSendOrder(tSendOrder);
    }

    /**
     * 修改强派设置
     * 
     * @param tSendOrder 强派设置
     * @return 结果
     */
    @Override
    public int updateTSendOrder(TSendOrder tSendOrder)
    {
        tSendOrder.setUpdateTime(DateUtils.getNowDate());
        return tSendOrderMapper.updateTSendOrder(tSendOrder);
    }

    /**
     * 批量删除强派设置
     * 
     * @param sendOrderIds 需要删除的强派设置主键
     * @return 结果
     */
    @Override
    public int deleteTSendOrderBySendOrderIds(Long[] sendOrderIds)
    {
        return tSendOrderMapper.deleteTSendOrderBySendOrderIds(sendOrderIds);
    }

    /**
     * 删除强派设置信息
     * 
     * @param sendOrderId 强派设置主键
     * @return 结果
     */
    @Override
    public int deleteTSendOrderBySendOrderId(Long sendOrderId)
    {
        return tSendOrderMapper.deleteTSendOrderBySendOrderId(sendOrderId);
    }
}
